import request from '../utils/request';
import { cloud } from '../utils/config';

  export async function queryAll () {
    console.log('------------->');
    return request(`${cloud}/contract/contracts`,{
        method: 'get'
      }
    )
  }

  export async function remove (data) {

    const id = data.payload.id;
    return request( `${cloud}/contract/delete/${id}`, {
      method:'delete'
    })
    console.log(id);

  }

  export async function query (payload) {
    return request(`${cloud}/customer/customers`,{
        method: 'post',
        data: payload,
      }
    )
  }


//delete?id=${id}
